Add Codex review comment auto-resolve bridge#435
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
📝 WalkthroughWalkthroughAdds a GitHub Actions workflow triggered by review comments from a specific bot to auto-post a Codex resolution instruction comment, with deduplication and reply-skip logic. Adds AGENTS.md documentation defining Codex's automatic review focus, severity calibration, fix/comment/resolve rules, and auto-resolve trigger constraints. ChangesCodex auto-resolve automation
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant Reviewer as chatgpt-codex-connector
participant Workflow as codex-autofix-review-comments
participant GitHubAPI as GitHub Issues API
participant Codex
Reviewer->>Workflow: pull_request_review_comment (created)
Workflow->>Workflow: check PR open state and commenter login
Workflow->>Workflow: skip if review-thread reply
Workflow->>GitHubAPI: paginate existing PR comments
Workflow->>Workflow: check for existing head-commit marker
Workflow->>GitHubAPI: create Codex instruction comment
GitHubAPI->>Codex: instruction comment triggers resolution
Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (10 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
Summary
Testing
|
Summary
Adds no-API-key Codex auto-resolve bridge for review comments:
.github/workflows/codex-autofix-review-comments.yml.AGENTS.md.chatgpt-codex-connectorinline review comments and posts the primary@codex resolve all review comments...command once per PR head commit.Behavior
openai/codex-action,OPENAI_API_KEY, or direct OpenAI API calls.Repository setting changed
Set Database GitHub Actions workflow permissions to write so the workflow can post the
@codexcommand comment:default_workflow_permissions=writecan_approve_pull_request_reviews=trueValidation
git diff --check@codex resolve...command, and absence of OpenAI API-key/Codex Action usageRemaining activation requirement
Codex automatic reviews still need to be enabled for this repo in Codex Cloud settings. This PR cannot change the Codex Cloud settings page.
Remaining risk
This bridge depends on Codex Cloud responding to an
@codexcommand posted bygithub-actions[bot]. If Codex ignores bot-authored commands, the fallback is a directopenai/codex-actionworkflow, but that requires anOPENAI_API_KEYand explicit API/cost approval.